<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title> 小程序管理系统</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  
  <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css"  media="all">
  <style type="text/css">
  
  </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <!--菜单列表-->
  <div id = "divhead"></div>
  
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding:0 15px;">
      <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>支付配置</legend>
      </fieldset>
       
      <form id="mainForm" class="layui-form" action="{:U('Index/paySub')}" enctype="multipart/form-data" method="post">
        <div class="layui-form-item">
          <label class="layui-form-label">支付密钥 （PartnerKey）</label>
          <div class="layui-input-block">
            <input type="text" name="partner_key" lay-verify="required" autocomplete="off" placeholder="请输入支付密钥" class="layui-input" value="{$info.partner_key}">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">微信支付商户号</label>
          <div class="layui-input-block">
            <input type="text" name="mch_id" lay-verify="required" placeholder="请输入微信支付商户号" autocomplete="off" class="layui-input" value="{$info.mch_id}">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">CERT证书文件</label>
          <div class="layui-input-block">
            <input type="file" name="file">
          </div>
          <div class="layui-input-block">
            <span>
              证书状态:
              <if condition="$info.certificate_path_cert eq ''">
                <span style="color: red;">未上传</span>
                <span style="color: darkgray;">&nbsp;&nbsp;&nbsp;&nbsp;下载证书cert.zip的apiclient_cert.pem文件</span>
              <else />
                <span style="color: blue;">已存在</span>
                <span style="color: darkgray;">&nbsp;&nbsp;&nbsp;&nbsp;下载证书cert.zip的apiclient_cert.pem文件</span>
              </if>
            </span>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">KEY密钥文件</label>
          <div class="layui-input-block">
            <input type="file" name="file_2">
          </div>
          <div class="layui-input-block">
            <span>
              密钥状态:
              <if condition="$info.certificate_path_key eq ''">
                <span style="color: red;">未上传</span>
                <span style="color: darkgray;">&nbsp;&nbsp;&nbsp;&nbsp;下载证书cert.zip的apiclient_key.pem文件</span>
              <else />
                <span style="color: blue;">已存在</span>
                <span style="color: darkgray;">&nbsp;&nbsp;&nbsp;&nbsp;下载证书cert.zip的apiclient_key.pem文件</span>
              </if>
            </span>
          </div>
        </div>
        <div class="layui-form-item">
          <div class="layui-input-block">
            <!--<button class="layui-btn" lay-submit="" lay-filter="*">立即提交</button>-->
            <input type="submit" value="立即提交" id="agreementSub" style="width: 120px;height: 37px;color: white;background-color: #00b7ee;font-size: 22px;border: 0px;">
            <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button> -->
          </div>
        </div>
      </form>
    </div>
  </div>
  
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    © 2017-2018 <a href="https://www.58zltc.com" target="_blank">  </a> All Rights Reserved.
  </div>
</div>
<script src="__PUBLIC__/js/jquery-1.11.1.min.js" charset="utf-8"></script>
<script>
    $(function(){
        $('#divhead').load('menu.html');
    })
//JavaScript代码区域
//layui.use(['element','form'], function(){
//  var element = layui.element
//  ,$ = layui.jquery
//  ,layer = layui.layer
//  ,form = layui.form;
//  form.on('submit(*)', function(data){
//    $.post('#', data.field, function(e) {
//      layer.alert(e.info);
//    });
//    return false;
//  });
//});
//$(function () {
//  $("#agreementSub").on("click",function(){
//    $('#mainForm').ajaxSubmit(      //ajax方式提交表单
//            {
//              url: 'Index/paySub',
//              type: 'post',
//              dataType: 'json',
//              beforeSubmit: function () {},
//              success: function (data) {
//                if (data.Res == "True" || data.Res == true) {
//                  //$('.jsrz_main_check').html('您的申请已提交，我们将会在1-2个工作日内进行审核，请耐心等待!');
//                  alert('1');
//                } else {
//                  alert(data.Msg);
//                }
//              },
//              clearForm: false,//禁止清楚表单
//              resetForm: false //禁止重置表单
//            });
//  });
//})

</script>
</body>
</html>
